package com.tianji.api.client.remark;

import com.tianji.api.client.remark.fallback.LikesClientFallback;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

/**
 * @author Xinxuan Zhuo
 * @version 2024/3/4
 * <p>
 * 点赞业务feign接口
 * </p>
 */

@FeignClient(value = "remark-service",path = "/likes", fallbackFactory = LikesClientFallback.class)
public interface LikesClients {


    /**
     * 根据业务ID批量查询点赞状态
     */
    @ApiOperation("批量查询点赞状态")
    @GetMapping("/list")
    Set<Long> isBizLiked(@RequestParam("bizIds") List<Long> bizIds);

}
